import regeneratorRuntime from '../../lib/runtime/runtime';
import { request } from "../../request/index.js";
import {getUserProfile} from "../../utils/asyncWx.js";
Page({
    data:{
        userInfo: {},
    },
    // handleGetuserInfo(e){
    //     const {userInfo}=e.detail;
    //     wx.setStorageSync('userinfo', userInfo);
    //     console.log(userInfo)
    //     wx.navigateBack({
    //         delta:1
    //     })
    // },
    async getUserProfile(e) {
        const {userInfo}=await getUserProfile();
        console.log(userInfo)
        wx.setStorageSync('userinfo', userInfo)
        wx.navigateBack({
             delta:1
         })
    }
})